package me.zixing.java.guiandthread.ui;

import javax.swing.*;
import java.awt.*;

/**
 * Created by bingh on 2017/10/21.
 */
public abstract class ImagePanel extends JPanel {

    @Override
    public void paint(Graphics g) {
        super.paint(g);
        doDraw(g);
    }

    public abstract void doDraw(Graphics g);

}
